/*
 * @Description: 
 * @Version: 0.1
 * @Autor: Civet
 * @Date: 2019-08-02 16:04:58
 * @LastEditors: Civet
 * @LastEditTime: 2019-08-02 16:04:58
 */
export const format = {};
/**
 * 获取用户的列表
 * @param {*} res
 */
format.getServiceList = function (formatres) {
  if (formatres.data.code == 200) {
    let newContent = formatres.data.data.content.map((item, index) => {
      return {
        current: item.current,
        groupName: item.groupName,
        id: item.id,
        image: item.image,
        mode: item.mode,
        name: item.name,
        ports: item.ports,
        replicas: item.replicas,
        serviceId: item.serviceId,
        updated: item.updated,
        tableData: []
      }
    });
    formatres.data.data.content = newContent;
    return formatres;
  }
}
